<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>宿舍调整对方宿舍</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript" src="${ctxStatic}/js/hydms/students/adjustmentoOtherSide.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/students/dmsStudents/adjustmentoOtherSide">宿舍调整对方宿舍信息</a></li>
		<%-- <shiro:hasPermission name="students:dmsStudents:edit"><li><a href="${ctx}/students/dmsStudents/form">学生信息添加</a></li></shiro:hasPermission> --%>
	</ul>
	<form:form id="searchForm" modelAttribute="dmsStudents" action="${ctx}/students/dmsStudents/adjustmentoOtherSide?idstr=${idstr}" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<input id="inputCtx" name="ctx" type="hidden" value="${ctx}"/>
		<input id="idstrId" name="idstrId" type="hidden" value="${idstr}"/>
		<ul class="ul-form">
			<li><label>学号：</label>
				<form:input path="studentNumber" htmlEscape="false" maxlength="64" class="input-medium" placeholder="请输入5-10位学号"/>
			</li>
			<li><label>学生姓名：</label>
				<form:input path="studentName" htmlEscape="false" maxlength="64" class="input-medium" placeholder="请输入学生姓名"/>
			</li>
			<li><label>宿舍号：</label>
				<form:input path="dormitoryNumber" htmlEscape="false" maxlength="10" class="input-medium" id="dormitoryNumberId" placeholder="请输入宿舍号"/>
			</li>
			<%-- <li><label>班级：</label>
				<form:input path="classesNumber" htmlEscape="false" maxlength="30" class="input-medium"/>
			</li>
		 	<li><label>入住日期：</label>
				<input name="checkInDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${dmsStudents.checkInDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li> --%>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><input id="btnAdjustment" class="btn btn-primary" type="button" value="人员对调"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
			     <th>选择</th>
				<th>学号</th>
				<th>学生姓名</th>
				<th>学生性别</th>
				<th>宿舍号</th>
				<th>班级</th>
				<th>入住日期</th>
				<th>联系电话</th>
				<th>住宿总费用</th>
				<%-- <shiro:hasPermission name="students:dmsStudents:edit"><th>操作</th></shiro:hasPermission> --%>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="dmsStudents">
			<tr>
			<td>
			    <input type="checkbox" value="${dmsStudents.id}"  name="checkboxName" />
			    </td>
				<td><a href="${ctx}/students/dmsStudents/form?id=${dmsStudents.id}">
					${dmsStudents.studentNumber}
				</a></td>
				<td>
					${dmsStudents.studentName}
				</td>
				<td>
					${dmsStudents.studentSex}
				</td>
				<td>
					${dmsStudents.dormitoryNumber}
				</td>
				<td>
					${dmsStudents.classesNumber}
				</td>
				<td>
					<fmt:formatDate value="${dmsStudents.checkInDate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${dmsStudents.phoneNumber}
				</td>
				<td>
					${dmsStudents.allFee}
				</td>
				<%-- <shiro:hasPermission name="students:dmsStudents:edit"><td>
				<a href="${ctx}/students/dmsStudents/adjustments?stuId=${dmsStudents.id}">调整</a>
    				<a href="${ctx}/students/dmsStudents/form?id=${dmsStudents.id}">修改</a>
					<a href="${ctx}/students/dmsStudents/delete?id=${dmsStudents.id}" onclick="return confirmx('确认要删除该学生信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission> --%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>